NodeType

public enum NodeType

The values that can be used to distinguish different kind of nodes, such that HTML element, text, attribute, from each other.

Entries

Link copied to clipboard

Represents an element node such as <p> or <div>.

Link copied to clipboard

An attribute of the HTML element.

Link copied to clipboard

The actual text of the HTML element or the attribute.

Link copied to clipboard

A [CDATA] section.

Link copied to clipboard

A `ProcessingInstruction of an XML document such as <?xml-stylesheet ... ?> declaration.

Link copied to clipboard

A content between the <!-- and --> statements.

Link copied to clipboard

A document node.

Link copied to clipboard

A document type node. For example, <!DOCTYPE html> for HTML5 documents.

Link copied to clipboard

A segment of the document structure.

Functions

Link copied to clipboard
public static NodeType valueOf(String name)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
public static Array<NodeType> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.